/**
 * 
 */
package org.tangram.component.base;

import java.util.LinkedHashMap;
import java.util.Map;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementMap;
import org.simpleframework.xml.Root;

/**
 * @author han_feng
 * 
 */
@Root(name = "extension", strict = false)
public class DefaultExtensionConfig extends BaseExtensionConfig {

	@ElementMap(entry = "config", key = "key", attribute = true, inline = true)
	private Map<String, String> configs = new LinkedHashMap<String, String>();

	public DefaultExtensionConfig(@Attribute(name = "point") String point) {
		super(point);
	}

	public String getConfig(String name) {
		return configs.get(name);
	}

	public Map<String, String> getConfigs() {
		return configs;
	}

}
